<link rel="stylesheet" type="text/css" href="css/layout_master_page.css" />
<?php
	@$id = $_GET['id'];
	@$id_type = $_GET['id_type'];
	include_once('libs/htdu_core.php');
	$exe_mysql = new execute_mysql_query();
	$result = $exe_mysql->execute("select * from node where id = $id and id_type = $id_type",0);
	$row = mysql_fetch_array($result);
	
	echo '<div class="detail-news-title">'.$row['title'].'</div>';
	echo '<div class="detail-news-content">'.$row['content'].'</div>';
?>

<div class="title-cung-loai">
	<p class="group-line" style="width:98%">
    	<span class="group-title">Các tin liên quan</span>
	</p>
	<?php
		$result = $exe_mysql->execute("select * from node where id_type = $id_type and id <> $id",0);
		
		$result = $exe_mysql->execute("select nt.id, name, n.id, id_type, title, description, date from node n, node_type nt where id_type = nt.id and n.id <> $id and id_type = $id_type",0);
		while($row = mysql_fetch_array($result))
		{
			$func = new global_function();
			$cat = $func->remove_sign($row["name"]);
			$title = $func->remove_sign($row["title"]);
			echo '<div class="title-cung-loai-icon">';
				echo '<div class="title-cung-loai-title">'.'<a href="'.$cat.'/'.$title.'/'.$row['id_type'].'/'.$row['id'].'.html" class="link-more">'.$row['title'].' ('.$row['date'].')'.'</a>'.'</div>';
			echo '</div>';
		}
	?>
</div>